// useHelp.js
Page({

  data: {
    showHowGetTeacher:false,
    showHowGetStudent: false,
    showProtectPrivacy: false,
    showAboutSalary: false,
    showSecurity: false,
    showContact: false
  },

  onLoad: function (options) {
  },

  onShow: function () {
  
  },

  showHowGetTeacher:function(){
    if (this.data.showHowGetTeacher==false)
    {
      this.setData({
        showHowGetTeacher: true,
        showHowGetStudent: false,
        showProtectPrivacy: false,
        showAboutSalary: false,
        showSecurity: false,
        showContact: false
      });
    }
    else{
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: false,
        showProtectPrivacy: false,
        showAboutSalary: false,
        showSecurity: false,
        showContact: false
      });
    }
  },

  showHowGetStudent: function () {
    if (this.data.showHowGetStudent == false) {
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: true,
        showProtectPrivacy: false,
        showAboutSalary: false,
        showSecurity: false,
        showContact: false
      });
    }
    else {
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: false,
        showProtectPrivacy: false,
        showAboutSalary: false,
        showSecurity: false,
        showContact: false
      });
    }
  },

  showProtectPrivacy: function () {
    if (this.data.showProtectPrivacy == false) {
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: false,
        showProtectPrivacy: true,
        showAboutSalary: false,
        showSecurity: false,
        showContact: false
      });
    }
    else {
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: false,
        showProtectPrivacy: false,
        showAboutSalary: false,
        showSecurity: false,
        showContact: false
      });
    }
  },


  showAboutSalary: function () {
    if (this.data.showAboutSalary == false) {
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: false,
        showProtectPrivacy: false,
        showAboutSalary: true,
        showSecurity: false,
        showContact: false
      });
    }
    else {
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: false,
        showProtectPrivacy: false,
        showAboutSalary: false,
        showSecurity: false,
        showContact: false
      });
    }
  },

  showSecurity: function () {
    if (this.data.showSecurity == false) {
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: false,
        showProtectPrivacy: false,
        showAboutSalary: false,
        showSecurity: true,
        showContact: false
      });
    }
    else {
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: false,
        showProtectPrivacy: false,
        showAboutSalary: false,
        showSecurity: false,
        showContact: false
      });
    }
  },
  showContact: function () {
    if (this.data.showContact == false) {
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: false,
        showProtectPrivacy: false,
        showAboutSalary: false,
        showSecurity: false,
        showContact: true,
        showdis:false
      });
    }
    else {
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: false,
        showProtectPrivacy: false,
        showAboutSalary: false,
        showSecurity: false,
        showContact: false,
        showdis:false
      });
    }
  },
  showdis: function () {
    if (this.data.showContact == false) {
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: false,
        showProtectPrivacy: false,
        showAboutSalary: false,
        showSecurity: false,
        showContact: false,
        showdis:true
      });
    }
    else {
      this.setData({
        showHowGetTeacher: false,
        showHowGetStudent: false,
        showProtectPrivacy: false,
        showAboutSalary: false,
        showSecurity: false,
        showContact: false,
        showdis:false
      });
    }
  },
})